/*************************************************************/
/*               Sentinel 2A MSI L1C PROCESSING              */
/*                    Jiaying He 06/09/2016                  */
/*************************************************************/

#ifndef L1C_MSI_H
#define L1C_MSI_H

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <errno.h>


#include "tiffio.h"
#include "geotiff.h"
#include "xtiffio.h"
#include "geo_normalize.h"
#include "cpl_serv.h"
#include "geo_tiffp.h"
#include "geo_normalize.h"
#include "geovalues.h"
#include "proj_api.h"

#include "openjpeg.h"
#include "format_defs.h"

/* -------------------------------------------------------------------------- */
/* l1c_msi Header */
/* Define */

#ifdef __cplusplus
extern "C" {
#endif
    /* Definition of all l1c_msi.c functions */

    int openl1c_msi(filehandle *file);
    int readl1c_msi(filehandle *file, int recnum, l1str *l1rec, int lonlat);
    int closel1c_msi(filehandle *file);
    int readl1c_msi_lonlat(filehandle *file, int recnum, l1str *l1rec);

#ifdef __cplusplus
}
#endif



#endif